<template>
    <van-search
            v-model="value"
            shape="round"
            background="oldlace"
            placeholder="搜索商品名称"
            @click="toSearch"
    />
</template>
<script>
    export default {
        name: "Header",
        data() {
            return {
                value: ''
            }
        },
        methods: {
            toSearch() {
                this.$router.push({path: '/search'})
            }
        }
    }
</script>

<style scoped>

</style>
